//
//  StrategyModel.m
//  课余时间
//
//  Created by zgr on 16/4/9.
//  Copyright © 2016年 张大少. All rights reserved.
//

#import "StrategyModel.h"

@implementation StrategyModel
-(void)setValue:(id)value forUndefinedKey:(NSString *)key
{
    if ([key isEqualToString:@"children"]) {
        
        self.childrenModel = [NSMutableArray array];
        
        for (NSDictionary *dic in value) {
            ChildrenModel *model = [[ChildrenModel alloc]init];
            [model setValuesForKeysWithDictionary:dic];
            [_childrenModel addObject:model];
        }
        
    }
    else if([key isEqualToString:@"id"])
    {
        self.straID = value;
    }
}
@end
